package cn.dglydrpy.study.mmail.product.feign;

import cn.dglydrpy.study.mmail.common.dto.SkuRedutionDTO;
import cn.dglydrpy.study.mmail.common.dto.SpuBoundsDTO;
import cn.dglydrpy.study.mmail.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Yyy
 * @date 2024/12/21 18:10
 * @description
 */
@FeignClient(name = "coupon")
public interface CouponFeignService {

    /**
     * 需要访问的远程方法
     * @return
     */
    @GetMapping("/coupon/skufullreduction/saveinfo")
    public R saveFullRedution(@RequestBody SkuRedutionDTO dto);


    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    public R saveSpuBounds(@RequestBody SpuBoundsDTO spuBoundsDTO);
}
